package tree.exp;

import tree.ExpList;

public class MEM extends Exp {
          
    /***/
    public Exp exp;

    /**
     * 
     * */
    public MEM(Exp e) {
            exp=e;
    }

    /**
     * 
     * */
    public ExpList kids() {
            return new ExpList(exp,null);
    }

    /**
     * 
     * */
    public Exp build(ExpList kids) {
            return new MEM(kids.head);
    }

    /**
     * 
     * */
    public String print() {
            return "MEM( "+ exp.print() +" );";
    }
}